package com.edu.order.controller;

import com.edu.order.feign.WeatherFeignClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class WeatherController {
    @Autowired
    private WeatherFeignClient weatherFeignClient;

    @GetMapping("/weather/city")
    public String getWeather() {
        String auth = "APPCODE d512de6a02854b1bbf9508e1448f56f7";
        return weatherFeignClient.getWeather(auth);

    }
}
